<template>
  <table class="table table-bordered table-stripped">
    <!-- 表格标题区域 -->
    <thead>
      <tr>
        <slot name="tou"></slot>

      </tr>
    </thead>
    <!-- 表格主体区域 -->
    <tbody>
      <tr v-for="(obj,index) in arr" :key="obj.id">
        <slot name="db" :rou='obj' :ind='index'></slot>

      </tr>
    </tbody>
  </table>
</template>

<script>
  export default {
    name: 'MyTable',
    props: ['arr']

  }
</script>


<style scoped lang="less">
  .my-goods-list {
    .badge {
      margin-right: 5px;
    }
  }
</style>